//
//  SYDNavgationBar.swift
//  ZuoGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/30.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

import UIKit

class SYDNavgationBar: UIView {
    
    @IBOutlet weak var LeftView: UIView!
    @IBOutlet weak var RightView: UIView!
    @IBOutlet weak var TitleView: UIView!
    @IBOutlet weak var titleLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }
    func preferredStatusBarStyle() -> UIStatusBarStyle {
        return UIStatusBarStyle.lightContent
    }
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func hiddenAllSubviews() {
        self.LeftView.isHidden = true
        self.RightView.isHidden = true
        self.TitleView.isHidden = true
    }
    class func NavBarView() ->SYDNavgationBar {
    
      return Bundle.main.loadNibNamed(NSStringFromClass(SYDNavgationBar.self), owner: nil, options: nil)?.last as! SYDNavgationBar
    }
   
}

